﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MicropleSoft.WmsApp.Library.ServiceFacade;

namespace MicropleSoft.WmsApp.Library.Proxy
{
    public class EntityFilterByState
    {
        public static List<T> GetNeedSaveEntity<T>(List<T> list) where T : IBaseDomainObject
        {
            var result = (from e in list
                          where e.DomainObjectState != DomainEntityState.None
                          select e).ToList();
            return result;
        }
    }
}
